// src/components/s-goods-detail/swiper/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    images: Array,
    specialStatus:Number,
    modelStatus:Number,
    goodsInfo:Object
  },
  /**
   * 组件的初始数据
   */
  data: {
    indicatorDots: false,
    autoplay: true,
    circular: true,
    interval: 3000,
    duration: 1000,
    indicatorActiveColor:'#ff5500',
    indicatorColor:'#D2D2D2',
    swiperCurrent:0,
  },
 
  /**
   * 组件的方法列表
   */
  methods: {
    fn(e) {
      this.setData({
        swiperCurrent: e.currentTarget.dataset.i
      })
    },
    // 点击轮播下方点切换
    doChange(e) {
      this.setData({
        swiperCurrent: e.currentTarget.dataset.i
      })
    },
    // 滑动轮播切换
    swiperChange(e) {
      this.setData({
        swiperCurrent: e.detail.current
      })
    },
  }
})
